package com.xc.c1

package xx{
  //包对象
  package object bao2 {
    val xx = "xx"
    def sayHi: Unit ={
      println("say hi" + xx)
    }

    object mm{
      def main(args: Array[String]): Unit = {
        sayHi
      }
    }
  }

  package bao2{
    class cc{
      def xx: Unit ={
        sayHi
      }
    }

    object oo{
      def main(args: Array[String]): Unit = {
        val c = new cc
        c.xx
      }
    }
  }
}

